
  {{extend './layout.html'}}
  
  {{block 'content'}}
    <div class="home-main" > 
      <div class="home-main-list">
        <main class="site-main">
          <div class="main-wrap bgWhite boxShadow">
            <header class="title">
              <h1 class="text-ellipsis">{{detailInfo.title}}</h1>
              <div class="label">
                <span>标签: {{detailInfo.labelType}}</span>
                <span>阅读: {{detailInfo.watch}}</span>
                <span>发布时间: {{detailInfo.createTime}}</span>
              </div>
            </header>
            
            <section class="main-content">
            <section class="main-content" >
              <p html="{{detailInfo.content}}" id="detailId"></p>
            </section>
            
            {{if detailInfo.original != 1}}
              <section class="gd-copy">
                <div class="zz-copy">
                <p>文章转载自：<a href="{{detailInfo.link}}" target="_blank">{{detailInfo.link}}</a>，
                  仅供网友学习和交流，如果有侵犯到您的权益，请及时联系QQ：229397218，将会在第一时间进行处理！</p>
                <p>对于文中内容，本站只作转载，不代表本站同意文中观点或证实文中信息</p>
                </div>
              </section>
            {{/if}}
            
            <!-- <div class="pages">
              <a href="http://www.qianduan8.com/1543.html" rel="prev">上一篇：如何正确的学习Node.js？</a>
              <a href="http://www.qianduan8.com/1821.html" rel="next">下一篇：从程序员到CTO，从专业走向卓越，分享大牛企业内部pdf与PPT的整理</a>			
            </div> -->
          </div>
        </main>
        
        <aside class="home-main-list-right">
          {{include './common/new.html' data}}
          {{include './common/hot.html' data}}
          {{include './common/label.html' data}}
        </aside>
      </div>
    </div>
  {{/block}} 

  {{block 'srcipt'}}
  <script>
    ;(()=>{
      let element = document.getElementById("detailId");
      let htmlContent = element.getAttribute("html");
      element.innerHTML = htmlContent
      console.log(element,'element')
    })()
  </script>
 {{/block}}

 
